package com.metacube.metaconnect.Service;

import com.metacube.metaconnect.model.LikeDAO;

public class LikeService {

	private LikeDAO likeDAO;

	public LikeService() {
		likeDAO = new LikeDAO();
	}

	public boolean insertLike(String email, int post_id) {
		return likeDAO.insertLike(email, post_id);
	}

	public String countLike(String post_id) {
		return likeDAO.countLike(post_id);
	}

	public boolean checkIfLike(String post_id, String email) {
		return likeDAO.checkIfLike(post_id, email);
	}
}
